import base from "./base"; // 导入接口域名列表
import axios from "../http"; // 导入http中创建的axios实例
import qs from "qs"; // 根据需求是否导入qs模块

const getClassify = {
  getClassInfo(params) {
    return axios.post(
      `${base.bd}/admin/class_info/lists`,
      qs.stringify(params)
    );
  },
  addClassInfo(params) {
    return axios.post(
      `${base.bd}/admin/class_info/saveadd`,
      qs.stringify(params)
    );
  },
  editClassInfo(params) {
    return axios.post(
      `${base.bd}/admin/class_info/saveedit`,
      qs.stringify(params)
    );
  },
  deleteClassInfo(params) {
    return axios.post(`${base.bd}/admin/class_info/del`, qs.stringify(params));
  },
  tableAddClassInfo(params) {
    return axios.post(
      `${base.bd}/admin/class_info/tableadd`,
      qs.stringify(params)
    );
  },
  tableDelClassInfo(params) {
    return axios.post(
      `${base.bd}/admin/class_info/tabledel`,
      qs.stringify(params)
    );
  },
  getClassField(params) {
    return axios.post(
      `${base.bd}/admin/class_field/lists`,
      qs.stringify(params)
    );
  },
  addClassField(params) {
    return axios.post(
      `${base.bd}/admin/class_field/saveadd`,
      qs.stringify(params)
    );
  },
  editClassField(params) {
    return axios.post(
      `${base.bd}/admin/class_field/saveedit`,
      qs.stringify(params)
    );
  },
  delClassField(params) {
    return axios.post(`${base.bd}/admin/class_field/del`, qs.stringify(params));
  },
  getClassFieldDetails(params) {
    return axios.post(
      `${base.bd}/admin/class_field/edit`,
      qs.stringify(params)
    );
  },
  getPublished(params) {
    return axios.post(
      `${base.bd}/admin/class_info/list_info`,
      qs.stringify(params)
    );
  },
  editPublished(params) {
    return axios.post(
      `${base.bd}/admin/class_info/bdsaveedit`,
      qs.stringify(params)
    );
  },
  delPublished(params) {
    return axios.post(
      `${base.bd}/admin/class_info/bddel`,
      qs.stringify(params)
    );
  },
  getcomments(params) {
    return axios.post(
      `${base.bd}/admin/class_info_reply/lists`,
      qs.stringify(params)
    );
  },
  editcomments(params) {
    return axios.post(
      `${base.bd}/admin/class_info_reply/saveedit`,
      qs.stringify(params)
    );
  },
  delcomments(params) {
    return axios.post(
      `${base.bd}/admin/class_info_reply/del`,
      qs.stringify(params)
    );
  },
  
  getreserve(params) {
    return axios.post(
      `${base.bd}/admin/class_info_appointment/lists`,
      qs.stringify(params)
    );
  },
  editreserve(params) {
    return axios.post(
      `${base.bd}/admin/class_info_appointment/saveedit`,
      qs.stringify(params)
    );
  },
  delreserve(params) {
    return axios.post(
      `${base.bd}/admin/class_info_appointment/del`,
      qs.stringify(params)
    );
  },
};
export default getClassify;
